package com.example.javasystem.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;



// 外部表
@Data
@TableName(value = "external_table")
public class ETable {
    // 在ETable中定义常量
    public static final int STATUS_UNPROCESSED = 0;
    public static final int STATUS_PROCESSED = 1;

    @TableId(type = IdType.AUTO) // 自增主键
    @TableField(value = "id")
    private Long id;
    @TableField(value = "timestamp")
    private Date timestamp;
    @TableField(value = "tank_number")
    private Integer tankNumber;
    @TableField(value = "temperature")
    private BigDecimal temperature;
    @TableField(value = "ph_value")
    private BigDecimal phValue;
    @TableField(value = "acetic_acid")
    private BigDecimal aceticAcid;
    @TableField(value = "alcohol")
    private BigDecimal alcohol;
    @TableField(value = "status")
    private boolean dealStatus = false;// 0-原始数据 1-预处理后数据
    @TableField(value = "abnormal_num")
    private boolean abnormalNum = false; // 1表示该数据异常, 0表示该数据正常
}
